

function User() {}
User.prototype.name = function() {
  console.log("user.name");
};
// let hd = new User();
// hd.name();

function Admin() {}
Admin.prototype = Object.create(User.prototype);
Admin.prototype.role = function() {
  console.log("admin.role");
};

function Member() {}
Member.prototype = Object.create(User.prototype, {
	role: {
		value: function() {
		  console.log("member.role");
		}
	}
});

let a = new Admin();
a.role();
// console.log(a.constructor)


let m = new Member();
m.role();
// console.log(m.constructor)













